
import platform from '@/util/platform'

export default async function() {
	console.log('app_init');
	const apiUrl = import.meta.env.VITE_API_TARGET || 'https://consul-api.qiershenghuo.com'
	uni.$config = {
		proxy: '/base_api',
		platform,
		baseUrl: 'https://consul-api.qiershenghuo.com/', // api接口
		homePahe: '/pages/home/index', // 首页
		loginPage: '/pages/auth/index', // 登录
		color: { // 主题颜色
			red: 'rgb(255 0 18)',
			black: 'rgb(51 51 51)',
		},
		noLogin: [
			'/pages/home/index','/pages/auth/index', '/pages/ask/index','/pages/user/index','/pages/msg/index',
			'/pages/msg/index', '/pages/worker/index', 'pages/user/index','/pages-home/market/index', '/pages-home/market/details','/pages/worker/upgrade',
			'/pages-home/service/index','/pages-home/service/detail','/pages-user/distributor/privacy_policy'
		],
		tabBar: ['/pages/home/index', '/pages/ask/index', '/pages/msg/index', '/pages/worker/index', '/pages/user/index']
	}
}